package com.rpay.common.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

//@Data
@Getter
@Setter
public class UserTradeDTO {
    private Integer id;

    private Integer userId;

    private String type;

    private BigDecimal rippleAmount;

    private BigDecimal price;

    private BigDecimal rpayAmount;

    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String userName;

    private BigDecimal rate;

    private BigDecimal cost;

    private String name;

    private String tx_hash;

    private int withdraw_wallet_id;

    private int destination_wallet_id;

    private String invest_wallet;

    private String expiry_date;

    private String fee;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getRippleAmount() {
        return rippleAmount;
    }

    public void setRippleAmount(BigDecimal rippleAmount) {
        this.rippleAmount = rippleAmount;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getRpayAmount() {
        return rpayAmount;
    }

    public void setRpayAmount(BigDecimal rpayAmount) {
        this.rpayAmount = rpayAmount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTx_hash() {
        return tx_hash;
    }

    public void setTx_hash(String tx_hash) {
        this.tx_hash = tx_hash;
    }

    public int getDestination_wallet_id() {
        return destination_wallet_id;
    }

    public void setDestination_wallet_id(int destination_wallet_id) {
        this.destination_wallet_id = destination_wallet_id;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public int getWithdraw_wallet_id() {
        return withdraw_wallet_id;
    }

    public void setWithdraw_wallet_id(int withdraw_wallet_id) {
        this.withdraw_wallet_id = withdraw_wallet_id;
    }



    @Override
    public String toString() {
        return "UserTradeDTO{" +
                "id=" + id +
                ", userId=" + userId +
                ", type='" + type + '\'' +
                ", rippleAmount=" + rippleAmount +
                ", price=" + price +
                ", rpayAmount=" + rpayAmount +
                ", status='" + status + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", userName='" + userName + '\'' +
                ", rate=" + rate +
                ", cost=" + cost +
                ", name='" + name + '\'' +
                ", tx_hash='" + tx_hash + '\'' +
                ", withdraw_wallet_id=" + withdraw_wallet_id +
                ", destination_wallet_id=" + destination_wallet_id +
                ", fee='" + fee + '\'' +
                '}';
    }
}